home *** CD-ROM | disk | FTP | other *** search
- #
- # (C) Tenable Network Security
- #
- # This plugin text was extracted from Mandrake Linux Security Advisory MDKSA-2003:098
- #
-
-
- if ( ! defined_func("bn_random") ) exit(0);
- if(description)
- {
- script_id(14080);
- script_version ("$Revision: 1.2 $");
- script_cve_id("CAN-2003-0543", "CAN-2003-0544", "CAN-2003-0545");
-
- name["english"] = "MDKSA-2003:098: openssl";
-
- script_name(english:name["english"]);
-
- desc["english"] = "
- The remote host is missing the patch for the advisory MDKSA-2003:098 (openssl).
-
-
- Two bugs were discovered in OpenSSL 0.9.6 and 0.9.7 by NISCC. The parsing of
- unusual ASN.1 tag values can cause OpenSSL to crash, which could be triggered by
- a remote attacker by sending a carefully-crafted SSL client certificate to an
- application. Depending upon the application targetted, the effects seen will
- vary; in some cases a DoS (Denial of Service) could be performed, in others
- nothing noticeable or adverse may happen. These two vulnerabilities have been
- assigned CAN-2003-0543 and CAN-2003-0544.
- Additionally, NISCC discovered a third bug in OpenSSL 0.9.7. Certain ASN.1
- encodings that are rejected as invalid by the parser can trigger a bug in
- deallocation of a structure, leading to a double free. This can be triggered by
- a remote attacker by sending a carefully-crafted SSL client certificate to an
- application. This vulnerability may be exploitable to execute arbitrary code.
- This vulnerability has been assigned CAN-2003-0545.
- The packages provided have been built with patches provided by the OpenSSL group
- that resolve these issues.
- A number of server applications such as OpenSSH and Apache that make use of
- OpenSSL need to be restarted after the update has been applied to ensure that
- they are protected from these issues. Users are encouraged to restart all of
- these services or reboot their systems.
-
-
- Solution : http://www.mandrakesoft.com/security/advisories?name=MDKSA-2003:098
- Risk factor : High";
-
-
-
- script_description(english:desc["english"]);
-
- summary["english"] = "Check for the version of the openssl package";
- script_summary(english:summary["english"]);
-
- script_category(ACT_GATHER_INFO);
-
- script_copyright(english:"This script is Copyright (C) 2004 Tenable Network Security");
- family["english"] = "Mandrake Local Security Checks";
- script_family(english:family["english"]);
-
- script_dependencies("ssh_get_info.nasl");
- script_require_keys("Host/Mandrake/rpm-list");
- exit(0);
- }
-
- include("rpm.inc");
- if ( rpm_check( reference:"libopenssl0-0.9.6i-1.5.82mdk", release:"MDK8.2", yank:"mdk") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"libopenssl0-devel-0.9.6i-1.5.82mdk", release:"MDK8.2", yank:"mdk") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"openssl-0.9.6i-1.5.82mdk", release:"MDK8.2", yank:"mdk") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"libopenssl0-0.9.6i-1.6.90mdk", release:"MDK9.0", yank:"mdk") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"libopenssl0-devel-0.9.6i-1.6.90mdk", release:"MDK9.0", yank:"mdk") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"openssl-0.9.6i-1.6.90mdk", release:"MDK9.0", yank:"mdk") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"libopenssl0-0.9.6i-1.2.91mdk", release:"MDK9.1", yank:"mdk") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"libopenssl0.9.7-0.9.7a-1.2.91mdk", release:"MDK9.1", yank:"mdk") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"openssl-0.9.7a-1.2.91mdk", release:"MDK9.1", yank:"mdk") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"libopenssl0.9.7-0.9.7b-4.1.92mdk", release:"MDK9.2", yank:"mdk") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"openssl-0.9.7b-4.1.92mdk", release:"MDK9.2", yank:"mdk") )
- {
- security_hole(0);
- exit(0);
- }
- if (rpm_exists(rpm:"openssl-", release:"MDK8.2")
- || rpm_exists(rpm:"openssl-", release:"MDK9.0")
- || rpm_exists(rpm:"openssl-", release:"MDK9.1")
- || rpm_exists(rpm:"openssl-", release:"MDK9.2") )
- {
- set_kb_item(name:"CAN-2003-0543", value:TRUE);
- set_kb_item(name:"CAN-2003-0544", value:TRUE);
- set_kb_item(name:"CAN-2003-0545", value:TRUE);
- }
-